package com.biz.primus.ms.coupon.dao.repository;

import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.coupon.dao.po.CouponType;
import java.util.Collection;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * CouponTypeRepository
 *
 * @author david-liu
 */
public interface CouponTypeRepository extends CommonJpaRepository<CouponType, Long>, CouponTypeDao {

    Page<CouponType> findByCouponTypeNameLikeAndEnable(String name, Boolean enable, Pageable pageable);

    Page<CouponType> findByEnable(Boolean enable, Pageable pageable);

    List<CouponType> findByIdAndDeleteStatus(Collection<Long> ids, Boolean deleteStatus);

}
